Skip to content

Conversation

@JaffaKetchup
Copy link
Member

@JaffaKetchup JaffaKetchup commented Mar 4, 2025

I honestly can't decide myself whether this feature is necessary. I thought I could think of a use-case for it, but I can't particularly (that MapOptions.onTap wouldn't already). Happy to close if you think it's not useful, lmk.


This is designed to go well in conjunction with #2046, which will allow for the painting of inverted polygons.

It adds more options to control hitting.

Non-polygon page hasn't been updated in example app, although the new features do apply to all the layers.

Updated example app
@JaffaKetchup JaffaKetchup requested a review from a team March 4, 2025 22:45
@JaffaKetchup JaffaKetchup marked this pull request as draft March 4, 2025 22:45
@JaffaKetchup JaffaKetchup marked this pull request as ready for review March 18, 2025 10:16
@JaffaKetchup
Copy link
Member Author

I honestly can't decide myself whether this feature is necessary. I thought I could think of a use-case for it, but I can't particularly (that MapOptions.onTap wouldn't already). Happy to close if you think it's not useful, lmk.

@monsieurtanuki
Copy link
Contributor

@JaffaKetchup I'm not sure it still makes sense to keep that PR as we moved the "inverted" feature from polygon holes to polygon layers.

@JaffaKetchup
Copy link
Member Author

I think I'm going to close this then. Maybe the ability to not consider non-interactive polygons as hittable could be useful, but that can be more easily/better implemented at some other point.

@JaffaKetchup JaffaKetchup deleted the layer-hit-test-strategy branch March 23, 2025 11:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants